inspector: Drop type name from node list
authorBenjamin Otte <otte@redhat.com>
Fri, 5 Feb 2016 18:31:03 +0000 (19:31 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 5 Feb 2016 18:31:47 +0000 (19:31 +0100)
It's not used anymore in the CSS, so people don't need to see it.

gtk/inspector/css-node-tree.c
gtk/inspector/css-node-tree.ui

index e0c6c008d371013e3268aa915fc22db6f0c88a19..db2e8207249d25f572d6979c626ad5cf373e5d52 100644 (file)
@@ -47,7 +47,6 @@
 
 enum {
   COLUMN_NODE_NAME,
-  COLUMN_NODE_TYPE,
   COLUMN_NODE_VISIBLE,
   COLUMN_NODE_CLASSES,
   COLUMN_NODE_ID,
@@ -414,10 +413,6 @@ gtk_inspector_css_node_tree_get_node_value (GtkTreeModelCssNode *model,
       g_value_set_string (value, gtk_css_node_get_name (node));
       break;
 
-    case COLUMN_NODE_TYPE:
-      g_value_set_string (value, g_type_name (gtk_css_node_get_widget_type (node)));
-      break;
-
     case COLUMN_NODE_VISIBLE:
       g_value_set_boolean (value, gtk_css_node_get_visible (node));
       break;
@@ -457,7 +452,6 @@ gtk_inspector_css_node_tree_init (GtkInspectorCssNodeTree *cnt)
   priv->node_model = gtk_tree_model_css_node_new (gtk_inspector_css_node_tree_get_node_value,
                                                   N_NODE_COLUMNS,
                                                   G_TYPE_STRING,
-                                                  G_TYPE_STRING,
                                                   G_TYPE_BOOLEAN,
                                                   G_TYPE_STRING,
                                                   G_TYPE_STRING,
index f34a3acbd10071f0762408f8a75a603bdf79baa7..0b2491063ab08a679aa770dac4cd72b27df12ab7 100644 (file)
@@ -5,7 +5,6 @@
       <column type="gchararray"/>
       <column type="gchararray"/>
       <column type="gchararray"/>
-      <column type="gchararray"/>
       <column type="gint"/>
     </columns>
   </object>
                     <signal name="changed" handler="selection_changed"/>
                   </object>
                 </child>
-                <child>
-                  <object class="GtkTreeViewColumn">
-                    <property name="resizable">1</property>
-                    <property name="title" translatable="yes">Type</property>
-                    <child>
-                      <object class="GtkCellRendererText"/>
-                      <attributes>
-                        <attribute name="text">1</attribute>
-                        <attribute name="sensitive">2</attribute>
-                      </attributes>
-                    </child>
-                  </object>
-                </child>
                 <child>
                   <object class="GtkTreeViewColumn" id="node_name_column">
                     <property name="resizable">1</property>
                       <object class="GtkCellRendererText"/>
                       <attributes>
                         <attribute name="text">0</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">4</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">3</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">3</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">2</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>
                     <child>
                       <object class="GtkCellRendererText"/>
                       <attributes>
-                        <attribute name="text">5</attribute>
-                        <attribute name="sensitive">2</attribute>
+                        <attribute name="text">4</attribute>
+                        <attribute name="sensitive">1</attribute>
                       </attributes>
                     </child>
                   </object>